Variables | Tutorial This section describes the expressions, types, and variables of the C # language. This lesson aims to achieve the following objectives:
1. Know what a "variable" is
2. Learn simple types of C #
3. Have a preliminary
"Variable" is only the storage location of data. You can store data in it or use it as a part of the C # expression. The meaning of the data stored in the variable is controlled by type.
C # is a strong type (???) Language. In this way, all
This is a creation in
Article, where the information may have evolved or changed.
In the Reprint blog, the features of Go are mentioned, and as a reference to write Java, you can also give yourself some programming style.
The following are the
This is a creation in
Article, where the information may have evolved or changed.
Http://www.csdn.net/article/2012-07-05/2807113-less-is-exponentially-more
Summary:Introduction: This article is the chief engineer of Google, the father of Go language,
Example name effect + + $ a add the value of $ a plus one, and then return $. $ A ++ returns $ a after adding, and then adds the value of $. -- Minus $ a before $ a minus one, and then returns $. $ A -- returns $ a after subtraction, and then drops
1. for smart pointers, security first, convenience second, localization (scoped_ptr) as much as possible );
2. Add const to the referenced parameter; otherwise, use the pointer parameter;
3. Use of function overloading should be clear and easy to
Google C + + Style Guide
Revision 3.260
Benjy Weinberger Craig Silverstein Gregory Eitzmann Mark Mentovai Tashana Landray
Each style point has a summary for which additional information are available by toggling the accompanying arrow button tha
Header file
1. Define Protection
The header file name should be based on the projectSource codeThe full path of the tree.
2. header file dependency
Use the forward statement to minimize the number of # include in. H files.
Declarations
Connection of temporary variables ~~
String findaddr (list EMPs/* input non-reference parameter */,
String name/* same as above */) {for (list : iterator I = EMPs. Begin (); I! = EMPs. End (); // It is recommended that you change this to the
Operators and computational sequence in C ++
1
. Operator and its priority
Priority
Operator
Combination Law
From high to low
() []->.
From left to right
! ~ + -- (Type) sizeof + -*&
From right to left
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.